package com.sh.data.engine.domain.shims.sql;

import com.sh.data.engine.domain.shims.sql.select.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface TerminalExpression {

    default <E> List<E> list(RowMapper<E> rowMapper) throws SQLException {
        throw new UnsupportedOperationException("不支持的操作");
    }

    default ResultSet list() throws SQLException {
        throw new UnsupportedOperationException("不支持的操作");
    }


    default <E> E single(RowMapper<E> rowMapper) throws SQLException {
        throw new UnsupportedOperationException("不支持的操作");
    }

    default void execute() throws SQLException {
        throw new UnsupportedOperationException("不支持的操作");
    }
}
